<template>
	<view>
		<text>我是test组件{{msg}}</text>
		<button type="primary" @click="test">event</button>
	</view>
</template>

<script>
	export default {
		name:"test",
		props:['msg'],
		data() {
			return {
				
			};
		},
		methods:{
			test(){
				// this.$emit('testShowName', {name:'Msea'})
				uni.$emit('testEmit', {name:'Luce'})
			}
		},
		mounted(){
			console.log("挂载到实例上去之后调用")
			this.$nextTick(function(){
				console.log("ok")
			})
		}
	}
</script>

<style lang="scss">

</style>
